import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useLayoutStore = defineStore('layout', () => {
  const collapsed = ref(false)
  const siderWidth = ref(240)

  const resetState = () => {
    collapsed.value = false
    siderWidth.value = 240
  }

  return {
    collapsed,
    siderWidth,
    resetState
  }
}) 